﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package com.fminutes.vinciLib.utils {

    public class TimeUtil {

        private static const SECOND_MILLI_PARA:uint = 1000;
        private static const MINUTE_SECOND_PARA:uint = 60;
        private static const HOUR_MINUTE_PARA:uint = 60;
        private static const DAY_HOUR_PARA:uint = 24;

        public static function getLeftMillisecond(_arg1:uint):uint{
            var _local2:uint = (_arg1 - (getTotalLeftSecond(_arg1) * SECOND_MILLI_PARA));
            return (_local2);
        }
        public static function getLeftSecond(_arg1:uint):uint{
            var _local2:uint = (getTotalLeftSecond(_arg1) - (getTotalLeftMinute(_arg1) * MINUTE_SECOND_PARA));
            return (_local2);
        }
        public static function getLeftMinute(_arg1:uint):uint{
            var _local2:uint = (getTotalLeftMinute(_arg1) - (getTotalLeftHour(_arg1) * HOUR_MINUTE_PARA));
            return (_local2);
        }
        public static function getLeftHour(_arg1:uint):uint{
            var _local2:uint = (getTotalLeftHour(_arg1) - (getTotalLeftDay(_arg1) * DAY_HOUR_PARA));
            return (_local2);
        }
        public static function getLeftDay(_arg1:uint):uint{
            var _local2:uint = getTotalLeftDay(_arg1);
            return (_local2);
        }
        public static function getTotalLeftSecond(_arg1:uint):uint{
            var _local2:uint = Math.floor((_arg1 / SECOND_MILLI_PARA));
            return (_local2);
        }
        public static function getTotalLeftMinute(_arg1:uint):uint{
            var _local2:uint = Math.floor(((_arg1 / SECOND_MILLI_PARA) / MINUTE_SECOND_PARA));
            return (_local2);
        }
        public static function getTotalLeftHour(_arg1:uint):uint{
            var _local2:uint = Math.floor((((_arg1 / SECOND_MILLI_PARA) / MINUTE_SECOND_PARA) / HOUR_MINUTE_PARA));
            return (_local2);
        }
        public static function getTotalLeftDay(_arg1:uint):uint{
            var _local2:uint = Math.floor(((((_arg1 / SECOND_MILLI_PARA) / MINUTE_SECOND_PARA) / HOUR_MINUTE_PARA) / DAY_HOUR_PARA));
            return (_local2);
        }

    }
}//package com.fminutes.vinciLib.utils 
